package com.kilomob.grady.codec;

import io.netty.channel.ChannelPipeline;

import com.google.common.collect.ClassToInstanceMap;
import com.google.common.collect.MutableClassToInstanceMap;
import com.kilomob.grady.handler.NettySendHandler;
import com.kilomob.grady.handler.netty.ProtostuffSendHandler;


public class SendSerializeFrame implements SerializeFrame {
    
    public void select(String protocol, String id,ChannelPipeline pipeline) {
        switch (protocol) {
            case "pt": {
                new ProtostuffSendHandler().handle(id,pipeline);
                break;
            }
            default:
                new ProtostuffSendHandler().handle(id,pipeline);
                break;
        }
    }
}

